package edu.sctu.fengleilin.month05.day150512;

/**
 * Created by user09 on 2015/5/12.
 */
public class TextChild extends TextSystem{

    TextAgeInterface textAgeInterface;

    public TextChild(TextAgeInterface textAgeInterface) {
      super(textAgeInterface);
        this.textAgeInterface = textAgeInterface;
        textAgeInterface.getint(10);
    }

//    ----------------------------------------------------
    private TextContent[] Textcontent = new TextContent[textContent.length];

    public TextChild(TextContent[] textContent) {
        super(textContent);
    }

    @Override
    public TextContent[] getSystem() {
        for (int i = 0; i < textContent.length; i++)
            if (textContent[i].getScore() > 60) {
                Textcontent[i] = textContent[i];
            }
        return Textcontent;
    }
}
